﻿
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="uc-sp-timkiem.ascx.cs" Inherits="Hyunhdai_Saigon_Project.uc.uc_sp_timkiem" %>
<link href="../assets/styles/StyleSheet.css" rel="stylesheet" type="text/css" />
<asp:Label ID="lblNoData" runat="server" Text=""></asp:Label>
<div>
    <div id="sanpham-margin-10px">
    </div>
    <div class="sanpham-noidung">
        <asp:DataList ID="dlCountry" runat="server" RepeatColumns="3" RepeatDirection="Horizontal"
            BorderColor="#336666" BorderStyle="Double" BorderWidth="3px" CellPadding="4"
            GridLines="Both"  OnItemDataBound="ItemDataBound">
            <ItemTemplate>
                <asp:Image ID="text" runat="server" ImageUrl='<%# check(("/"+DataBinder.Eval (Container.DataItem, "imgURL"))) %>' CssClass="datalist" Height="140px" Width="180px"  ImageAlign="Top"/>

                <div class="align-center">
                <p>
                    <asp:Label ID="Label2" runat="server" Text="Tên Xe:"></asp:Label>
                    <asp:Label ID="Label1" runat="server" Text='<%#Eval("name") %>'></asp:Label>
                    </p>
                    <p>
                    <asp:Label ID="Label3" runat="server" Text="Đời Xe:"></asp:Label>
                     <asp:Label ID="dx" runat="server" Text='<%#Eval("doixe") %>'></asp:Label>
                    </p>
                <div class="align-center hidden">
                    <asp:Label ID="mx" runat="server" Text='<%#Eval("id") %>'></asp:Label>
                    <asp:Label ID="dgx" runat="server" Text='<%#Eval("dongxe") %>'></asp:Label>
                   
                    <asp:Label ID="nt" runat="server" Text='<%#Eval("ngoaithat") %>'></asp:Label>
                    <asp:Label ID="sc" runat="server" Text='<%#Eval("socua") %>'></asp:Label>
                    <asp:Label ID="scn" runat="server" Text='<%#Eval("sochongoi") %>'></asp:Label>
                    <asp:Label ID="hs" runat="server" Text='<%#Eval("hopso") %>'></asp:Label>
                    <asp:Label ID="nl" runat="server" Text='<%#Eval("nhienlieu") %>'></asp:Label>
                    <asp:Label ID="htnl" runat="server" Text='<%#Eval("hethongnhienlieu") %>'></asp:Label>
                    <asp:Label ID="ttnl" runat="server" Text='<%#Eval("tieuthunhienlieu") %>'></asp:Label>
                </div>
            </ItemTemplate>
        </asp:DataList>
        <asp:DataList ID="dlPaging" runat="server" OnItemCommand="dlPaging_ItemCommand" OnItemDataBound="dlPaging_ItemDataBound"
            RepeatDirection="Horizontal" CssClass="dlpagging">
            <ItemTemplate>
                <asp:LinkButton ID="lnkbtnPaging" runat="server" CommandArgument='<%# Eval("PageIndex") %>'
                    CommandName="lnkbtnPaging" Text='<%# Eval("PageText") %>'></asp:LinkButton>
            </ItemTemplate>
        </asp:DataList>
    </div>
    <div class="sp-footer">
        <asp:DropDownList ID="ddlPageSize" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlPageSize_SelectedIndexChanged"
            Width="50px">
             <asp:ListItem Value="6"></asp:ListItem>
            <asp:ListItem Value="12"></asp:ListItem>
            <asp:ListItem Value="18"></asp:ListItem>
            <asp:ListItem Value="24"></asp:ListItem>
        </asp:DropDownList>
        <asp:LinkButton ID="lnkbtnPrevious" runat="server" OnClick="lnkbtnPrevious_Click">Trang Trước</asp:LinkButton>
        <asp:LinkButton ID="lnkbtnNext" runat="server" OnClick="lnkbtnNext_Click">Trang Sau</asp:LinkButton>
    </div>
</div>